import request from '@/utils/request'

// 查询账单列表列表
export function listOrders(query) {
  return request({
    url: '/platform/orders/list',
    method: 'get',
    params: query
  })
}

// 查询账单列表详细
export function getOrders(billId) {
  return request({
    url: '/platform/orders/' + billId,
    method: 'get'
  })
}

// 新增账单列表
export function addOrders(data) {
  return request({
    url: '/platform/orders',
    method: 'post',
    data: data
  })
}

// 修改账单列表
export function updateOrders(data) {
  return request({
    url: '/platform/orders',
    method: 'put',
    data: data
  })
}

// 删除账单列表
export function delOrders(billId) {
  return request({
    url: '/platform/orders/' + billId,
    method: 'delete'
  })
}
